home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 12511500 / var1286.dms / var1286.adf / printers / IBMColorJet / CommandTable.c < prev    next >
Text File  |  1992-09-02  |  7KB  |  108 lines

  1. /* IBM ColourJet */
  2. /* ColourJet/CommandTable.c */
  3. /***************************************************************************
  4.  *
  5.  *   IBM ColourJet functions implemented:
  6.  *  
  7.  *   aRIS,    aIND,    aNEL,
  8.  *   aSGR0,   aSGR4,   aSGR24,  aSGR1,   aSGR22,
  9.  *   aSHORP0, aSHORP4, aSHORP3, aSHORP6, aSHORP5,
  10.  *   aDEN4,   aDEN3,   aDEN2,   aDEN1,
  11.  *   aSUS2,   aSUS1,   aSUS4,   aSUS3,   aSUS0,
  12.  *   aVERP0,  aVERP1,  aSLPP,   aPERF,   aPERF0,
  13.  *   aTBC3,   aTBC4,   aTBCALL, aTBSALL
  14.  *
  15.  ***************************************************************************/
  16.  
  17. char *CommandTable[] ={
  18.     "\033[K\001\376\376", /* reset                 RIS    ESCc             */
  19.     "\377",               /* initialize            RIN    ESC#1            */
  20.     "\012",               /* lf                    IND    ESCD             */
  21.     "\015\012",           /* return,lf             NEL    ESCE             */
  22.     "\377",               /* reverse lf            RI     ESCM             */
  23.  
  24.     "\0337",              /* normal char set       SGR0   ESC[0m           */
  25.     "\377",               /* italics on            SGR3   ESC[3m           */
  26.     "\377",               /* italics off           SGR23  ESC[23m          */
  27.     "\033-\001",          /* underline on          SGR4   ESC[4m           */
  28.     "\033-\376",          /* underline off         SGR24  ESC[24m          */
  29.     "\033G",              /* boldface on           SGR1   ESC[1m           */
  30.     "\033H",              /* boldface off          SGR22  ESC[22m          */
  31.     "\377",               /* set foreground color  SFC    ESC[nm (n=30-39) */
  32.     "\377",               /* set background color  SBC    ESC[nm (n=40-49) */
  33.  
  34.     "\033W\376\024\022",  /* normal pitch 10cpi    SHORP0 ESC[0w           */
  35.     "\377",               /* elite on  12cpi       SHORP2 ESC[2w           */
  36.     "\377",               /* elite off 12cpi       SHORP1 ESC[1w           */
  37.     "\017",               /* condensed(fine) on    SHORP4 ESC[4w           */
  38.     "\022",               /* condensed off         SHORP3 ESC[3w           */
  39.     "\033W\001",          /* enlarged on           SHORP6 ESC[6w           */
  40.     "\033W\376",          /* enlarged off          SHORP5 ESC[5w           */
  41.  
  42.     "\377",               /* shadow print on       DEN6   ESC[6z           */
  43.     "\377",               /* shadow print off      DEN5   ESC[5z           */
  44.     "\033G",              /* doublestrike on       DEN4   ESC[4z           */
  45.     "\033H",              /* doublestrike off      DEN3   ESC[3z           */
  46.     "\033I\002",          /* NLQ on                DEN2   ESC[2z           */
  47.     "\033I\001",          /* NLQ off               DEN1   ESC[1z           */
  48.  
  49.     "\033S\376",          /* superscript on        SUS2   ESC[2v           */
  50.     "\033T",              /* superscript off       SUS1   ESC[1v           */
  51.     "\033S\001",          /* subscript on          SUS4   ESC[4v           */
  52.     "\033T",              /* subscript off         SUS3   ESC[3v           */
  53.     "\033T",              /* normalize             SUS0   ESC[0v           */
  54.     "\377",               /* partial line up       PLU    ESCL             */
  55.     "\377",               /* partial line down     PLD    ESCK             */
  56.  
  57.     "\377",               /* US char set           FNT0   ESC(B            */
  58.     "\377",               /* French char set       FNT1   ESC(R            */
  59.     "\377",               /* German char set       FNT2   ESC(K            */
  60.     "\377",               /* UK char set           FNT3   ESC(A            */
  61.     "\377",               /* Danish I char set     FNT4   ESC(E            */
  62.     "\377",               /* Sweden char set       FNT5   ESC(H            */
  63.     "\377",               /* Italian char set      FNT6   ESC(Y            */
  64.     "\377",               /* Spanish char set      FNT7   ESC(Z            */
  65.     "\377",               /* Japanese char set     FNT8   ESC(J            */
  66.     "\377",               /* Norweign char set     FNT9   ESC(6            */
  67.     "\377",               /* Danish II char set    FNT10  ESC(C            */
  68.                      
  69.     "\377",               /* proportional on       PROP2  ESC[2p           */
  70.     "\377",               /* proportional off      PROP1  ESC[1p           */
  71.     "\377",               /* proportional clear    PROP0  ESC[0p           */
  72.     "\377",               /* set prop offset       TSS    ESC[n E          */
  73.     "\377",               /* auto left justify     JFY5   ESC[5 F          */
  74.     "\377",               /* auto right justify    JFY7   ESC[7 F          */
  75.     "\377",               /* auto full justify     JFY6   ESC[6 F          */
  76.     "\377",               /* auto justify off      JFY0   ESC[0 F          */
  77.     "\377",               /* letter space          JFY3   ESC[3 F          */
  78.     "\377",               /* auto center on        JFY1   ESC[1 F          */
  79.  
  80.     "\0330",              /* 1/8" line space       VERP0  ESC[0z           */
  81.     "\0332",              /* 1/6" line spacing     VERP1  ESC[1z           */
  82.     "\033C",              /* set form length = n   SLPP   ESC[nt           */
  83.     "\033N",              /* perf skip n (n>0)     PERF   ESC[nq           */
  84.     "\033O",              /* perf skip off         PERF0  ESC[0q           */
  85.  
  86.     "\377",               /* Left margin set       LMS    ESC#9            */
  87.     "\377",               /* Right margin set      RMS    ESC#0            */
  88.     "\377",               /* top margin set        TMS    ESC#8            */
  89.     "\377",               /* Bottom marg set       BMS    ESC#2            */
  90.     "\377",               /* T&B margin set        STBM   ESC[n1;n2r       */
  91.     "\377",               /* L&R margin set        SLRM   ESC[n1;n2s       */
  92.     "\377",               /* Clear margins         CAM    ESC#3            */
  93.  
  94.     "\377",               /* Set horiz tab         HTS    ESCH             */
  95.     "\377",               /* Set vertical tab      VTS    ESCJ             */
  96.     "\377",               /* Clr horiz tab         TBC0   ESC[0g           */
  97.     "\033D\376",          /* Clear all h tabs      TBC3   ESC[3g           */
  98.     "\377",               /* Clr vertical tab      TBC1   ESC[1g           */
  99.     "\033B\376",          /* Clr all v tabs        TBC4   ESC[4g           */
  100.     "\033D\376\033B\376", /* Clr all h & v tabs    TBCALL ESC#4            */
  101.                           /* set default tabs      TBSALL ESC#5            */
  102.     "\033D\011\021\031\041\051\061\071\101\111\121\131\141\151\161\171\376",
  103.  
  104.     "\377"                /* entended command      EXTEND ESC[n"x          */
  105. };
  106. /****************  End of File: ColourJet/CommandTable.c  ******************/
  107.  
  108.